import request from '@/utils/request.js'

export const loginPost = (data) => {
	return request.post('/login', data)
}

export const getList = () => {
	return request.get('/menus')
}

export const getUesr = (query,pagenum,pagesize) => {
	return request.get('/users',{
    params:{
      query,
      pagenum,
      pagesize
    }
  })
}

export const delUser = id => {
	return request.delete('/user/'+id)
}
